AppController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 12
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A handleDefaultEvent 0 4 1
A rabbit 0 4 1
1
import { Controller, Get } from '@nestjs/common';
2
import { AppService } from './app.service';
3
4
@Controller()
5
export class AppController {
6
  constructor(private readonly appService: AppService) {
7
  }
8
9
  @Get('/default')
10
  handleDefaultEvent() {
11
    this.appService.handleDefaultEvent();
12
  }
13
14
  @Get('/rabbit')
15
  rabbit() {
16
    this.appService.rabbitEvent();
17
  }
18
}
19